package com.ym.domain.controller;

import com.ym.domain.common.base.Result;
import com.ym.domain.service.VerifyCodeBizService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/common")
@Validated
public class CommonController {

    @Autowired
    VerifyCodeBizService verifyCodeBizService;

    @GetMapping("/code/verifyCode")
    public Result getVerifyCode() {
        return verifyCodeBizService.getVerifyCode();
    }


}
